package com.xs.tool.common.sync;

/**
 * 回调方法
 *
 * @author xs
 * @date 20210119
 */
public abstract class CallBackBody {
    void onSuccess(Object context) {
        System.out.println("CallBack-onSuccess");
    }

    void onFailure(Object context) {
        System.out.println("CallBack-onFailure");
    }

    abstract void execute(Object context) throws Exception;
}
